package com.atguigu.day28.work;

public class Work2 {
    public static void main(String[] args) {

        getProduct(1,2,(a,b)->a+b);
        getProduct(1,2,(a,b)->a-b);
        getProduct(1,2,(a,b)->a*b);
        getProduct(1,2,(a,b)->a/b);
        getProduct(1,2,(a,b)->a&b);
        getProduct(1,2,(a,b)->a<<b);
    }
    public static void getProduct(int a,int b,IntCalc tools){
        tools.cal(a,b);
    }
}
